import { http } from "@/utils/http";
const apiRouter = `admin-menu`;
//修改
export const putV1OmsMenu = (data?: object) => {
  return http.request<any>("post", `/${apiRouter}?action=update`, { data });
};

//新增
export const postV1OmsMenu = (data?: object) => {
  return http.request<any>("post", `/${apiRouter}?action=create`, { data });
};

//菜单树列表
export const getV1OmsMenuTree = (data?: object) => {
  return http.request<any>("post", `/${apiRouter}?action=list`, { data });
};

//获取详情
export const getV1OmsMenuDetail = (data?: object) => {
  return http.request<any>("post", `/${apiRouter}?action=info`, { data });
};

//删除
export const deleteV1OmsMenuDetail = (data?: object) => {
  return http.request<any>("post", `/${apiRouter}?action=delete`, { data });
};
